from django.contrib import admin
from django.urls import path, include, re_path
from djangoProject.settings import MEDIA_ROOT
from myapp5 import views
from django.templatetags.static import static
from django.views.static import serve

urlpatterns = [
    path('myapp5/upload_file/', views.upload_file),
    path('myapp5/userinfoform/', views.userinfo_form),
    path('myapp5/userinfomsgform/', views.userinfo_msg_form),
    path('myapp5/userimg/', views.imgfileform),
    re_path('myapp5/media/(?P<path>.*)$', serve, {'document_root': MEDIA_ROOT}),
    path('myapp5/userinfomodelform', views.userbaseinfo_modelform),
    path('myapp5/ajax_login/', views.ajax_login),
    path('ajax_login_data/', views.ajax_login_data),
]
